package com.study.djl.consumer.controller;

import com.study.djl.consumer.service.KafkaService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/kafka/")
public class KafkaController {


    @Resource
    private KafkaService kafkaService;
    @GetMapping("hello/{name}")
    public void hello(@PathVariable String name){
        kafkaService.hello(name);
    }
}
